package com.fivestar.finance.app.bean.req;

import com.fivestar.finance.app.bean.Address;
import com.google.gson.Gson;

import java.util.List;

/**
 * Created by hjd on 2016/5/10.
 */
public class AddTaskReq {

    List<Address> jobDestination;

    int jobType;//任务类型
    String jobCarType;// 用车类型
    int jobState;// 任务状态
    String jobBill;//司机小费
    String jobUserDate;// 用车日期
    String jobUserTime;// 用车时间
    String jobCondition;//任务附加条件(REC:回单，CAR：搬运，PAY：回款)
    String userCarParameters;// 用车频率参数（{par1}-{par2}）par1:频率类型(1按天，2按频率)，par2：频率设置
    int costType;// 计费方式
    double costPara1;//按趟计费: 每趟配送货物运费
    double costPara2;//按货价计费：平均每车货物价格
    double costPara3;//按货价计费：每车货价百分比
    double costPara4;//按件数计费：作为运费的价格
    int costPara5;//按件数计费：总件数
    String remark;// 备注（商户捎话）

    public static String objectToJson(AddTaskReq addTaskReq) {
        return new Gson().toJson(addTaskReq);
    }

    public List<Address> getJobDestination() {
        return jobDestination;
    }

    public void setJobDestination(List<Address> jobDestination) {
        this.jobDestination = jobDestination;
    }

    public int getJobType() {
        return jobType;
    }

    public void setJobType(int jobType) {
        this.jobType = jobType;
    }

    public String getJobCarType() {
        return jobCarType;
    }

    public void setJobCarType(String jobCarType) {
        this.jobCarType = jobCarType;
    }

    public int getJobState() {
        return jobState;
    }

    public void setJobState(int jobState) {
        this.jobState = jobState;
    }

    public String getJobBill() {
        return jobBill;
    }

    public void setJobBill(String jobBill) {
        this.jobBill = jobBill;
    }

    public String getJobUserDate() {
        return jobUserDate;
    }

    public void setJobUserDate(String jobUserDate) {
        this.jobUserDate = jobUserDate;
    }

    public String getJobUserTime() {
        return jobUserTime;
    }

    public void setJobUserTime(String jobUserTime) {
        this.jobUserTime = jobUserTime;
    }

    public String getJobCondition() {
        return jobCondition;
    }

    public void setJobCondition(String jobCondition) {
        this.jobCondition = jobCondition;
    }

    public String getUserCarParameters() {
        return userCarParameters;
    }

    public void setUserCarParameters(String userCarParameters) {
        this.userCarParameters = userCarParameters;
    }

    public int getCostType() {
        return costType;
    }

    public void setCostType(int costType) {
        this.costType = costType;
    }

    public double getCostPara1() {
        return costPara1;
    }

    public void setCostPara1(double costPara1) {
        this.costPara1 = costPara1;
    }

    public double getCostPara2() {
        return costPara2;
    }

    public void setCostPara2(double costPara2) {
        this.costPara2 = costPara2;
    }

    public double getCostPara3() {
        return costPara3;
    }

    public void setCostPara3(double costPara3) {
        this.costPara3 = costPara3;
    }

    public double getCostPara4() {
        return costPara4;
    }

    public void setCostPara4(double costPara4) {
        this.costPara4 = costPara4;
    }

    public int getCostPara5() {
        return costPara5;
    }

    public void setCostPara5(int costPara5) {
        this.costPara5 = costPara5;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "AddTaskReq{" +
                "jobDestination=" + jobDestination +
                ", jobType=" + jobType +
                ", jobCarType='" + jobCarType + '\'' +
                ", jobState=" + jobState +
                ", jobBill='" + jobBill + '\'' +
                ", jobUserDate='" + jobUserDate + '\'' +
                ", jobUserTime='" + jobUserTime + '\'' +
                ", jobCondition='" + jobCondition + '\'' +
                ", userCarParameters='" + userCarParameters + '\'' +
                ", costType=" + costType +
                ", costPara1=" + costPara1 +
                ", costPara2=" + costPara2 +
                ", costPara3=" + costPara3 +
                ", costPara4=" + costPara4 +
                ", costPara5=" + costPara5 +
                ", remark='" + remark + '\'' +
                '}';
    }
}
